<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>highlight.t2t</title>
<meta name="generator" content="KF5::SyntaxHighlighting - Definition (txt2tags) - Theme (Breeze Dark)"/>
</head><body style="background-color:#232629;color:#cfcfc2"><pre>
<span style="color:#3f8058;">header-line1:</span><span style="color:#7a7c7d;"> document title</span>
<span style="color:#3f8058;">header-line2:</span><span style="color:#7a7c7d;"> author name, email</span>
<span style="color:#3f8058;">header-line3:</span><span style="color:#7a7c7d;"> date, version</span>

txt2tags sample

<span style="color:#7a7c7d;">% Comment Line </span><span style="color:#e85848;background-color:#451e1a;font-weight:bold;">ALERT</span><span style="color:#7a7c7d;"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">TODO</span><span style="color:#7a7c7d;"> </span><span style="color:#ca9219;background-color:#451e1a;font-weight:bold;">FIXME</span>

<span style="color:#7a7c7d;">%%%</span>
<span style="color:#7a7c7d;">Comment Block</span>
<span style="color:#7a7c7d;">%%%</span>

<span style="color:#7a7c7d;">%!--includeconf: config.t2t</span>
<span style="color:#7a7c7d;">% disabled here because there is no external file</span>
<span style="color:#27ae60;">%!preproc:</span><span style="color:#7a7c7d;"> 'JUST A TEST'    ' '</span>
<span style="color:#27ae60;">%!postproc:</span><span style="color:#7a7c7d;"> '(?i)(&lt;body)'   '\1 id=&quot;shots&quot;'</span>
<span style="color:#27ae60;">%!postproc:</span><span style="color:#7a7c7d;"> '(?i)(&lt;/title&gt;)'    ' shots\1'</span>

<span style="color:#7a7c7d;">%!--include: menu.t2t</span>

<span style="color:#8e44ad;font-weight:bold;">= Title 1 =</span>


<span style="color:#8e44ad;font-weight:bold;">== My Subtitle 1 ==[some definition]</span>

Some examples:

<span style="color:#da4453;font-weight:bold;">- </span>A paragraph with <span style="font-weight:bold;">**bold**</span>, <span style="font-style:italic;">//italic//</span> and <span style="text-decoration:line-through;">--strike--</span>.
<span style="color:#da4453;font-weight:bold;">- </span>You can even <span style="text-decoration:underline;">__underline your docs__</span>!

<span style="color:#da4453;font-weight:bold;">- </span>And use <span style="font-weight:bold;font-style:italic;">**//bold and italic//**</span> 
<span style="color:#da4453;font-weight:bold;">- </span>or <span style="font-weight:bold;font-style:italic;">//**italic and bold**//</span> 

Here is a nice pic: <span style="color:#27ae60;">[img/t2tpowered.png]</span>.

<span style="color:#da4453;font-weight:bold;">- </span>And a <span style="color:#27ae60;">[link to a cool website </span><span style="color:#27ae60;text-decoration:underline;">http://txt2tags.sf.net</span><span style="color:#27ae60;">]</span>!

<span style="color:#da4453;font-weight:bold;">- </span>A table : 

<span style="color:#f44f4f;">  || Name | Age  |  Gender |</span>
<span style="color:#f44f4f;">  | John |  33  |    Male |</span>
<span style="color:#f44f4f;">  | Mary |  19  |  Female |</span>
  

<span style="color:#c45b00;">``` A verbatim line</span>

And it's working for <span style="color:#c45b00;">``special code``</span> like this.

<span style="color:#c45b00;">```</span>
<span style="color:#c45b00;">A verbatim block</span>
<span style="color:#c45b00;">```</span>

Raw strings:

<span style="color:#da4453;">&quot;&quot;&quot; A raw line</span>

<span style="color:#da4453;">&quot;&quot;&quot;</span>
<span style="color:#da4453;">A raw block</span>
<span style="color:#da4453;">&quot;&quot;&quot;</span>

Tagged strings:

<span style="color:#da4453;">''' A tagged line</span>

<span style="color:#da4453;">'''</span>
<span style="color:#da4453;">A tagged block</span>
<span style="color:#da4453;">'''</span>

And remember,
<span style="color:#2980b9;">	A TAB in front of the line does a quotation.</span>
<span style="color:#2980b9;">		More TABs, more depth (if allowed).</span>

Horizontal lines:
<span style="font-weight:bold;">--------------------------------------------------------</span>
^ thin or large v
<span style="font-weight:bold;">========================================================</span>

<span style="color:#8e44ad;font-weight:bold;">== My Subtitle 2 ==</span>


Lorem ipsum etc
Lorem ipsum etc Lorem ipsum etc

<span style="color:#da4453;font-weight:bold;">- </span>Test d'écriture avec des accents à la française. Ça marche ou pas ?

<span style="color:#8e44ad;font-weight:bold;">== My Subtitle 3 ==</span>


Lorem ipsum etc
Lorem ipsum etc

Here is a direct link: <span style="text-decoration:underline;">http://kde.org</span>


<span style="color:#da4453;font-weight:bold;">- </span>Another boring part...



<span style="color:#8e44ad;font-weight:bold;">=== My Subsubtitle 1 ===</span>

<span style="font-style:italic;">//It's a level 3 header//</span> 

<span style="color:#da4453;font-weight:bold;">- </span>list 1
<span style="color:#da4453;font-weight:bold;">- </span>list 2
<span style="color:#da4453;font-weight:bold;"> - </span>list 2b
<span style="color:#da4453;font-weight:bold;">- </span>list 3


<span style="color:#8e44ad;font-weight:bold;">=== My Subsubtitle 2 ===</span>

<span style="font-style:italic;">//It's another level 3 header//</span> 

<span style="color:#da4453;font-weight:bold;">+ </span>ordered list 1
<span style="color:#da4453;font-weight:bold;">+ </span>list 2
<span style="color:#da4453;font-weight:bold;"> + </span>list 2B
<span style="color:#da4453;font-weight:bold;"> + </span>list 2C
<span style="color:#da4453;font-weight:bold;">+ </span>list 3


<span style="color:#8e44ad;font-weight:bold;">== My Subtitle 4 ==</span>

The handy <span style="color:#c45b00;">``%%date``</span> macro expands to the current date.

So today is <span style="color:#27aeae;">%%date</span> on the ISO <span style="color:#c45b00;">``YYYYMMDD``</span> format.

You can also specify the date format with the %? flags,
as <span style="color:#c45b00;">``%%date(%m-%d-%Y)``</span> which gives: <span style="color:#27aeae;">%%date(%m-%d-%Y)</span>.

<span style="color:#8e44ad;font-weight:bold;">= Images =</span>

The image mark is as simple as it can be: <span style="color:#c45b00;">``[filename]``</span>.

                      <span style="color:#27ae60;">[img/photo.jpg]</span>

And with some targets the image is linkable :

                      <span style="color:#27ae60;">[[img/photo.jpg] </span><span style="color:#27ae60;text-decoration:underline;">http://www.txt2tags.org</span><span style="color:#27ae60;">]</span>

<span style="color:#8e44ad;font-weight:bold;">=  Tables  =</span>

Use pipes to compose table rows and cells.
Double pipe at the line beginning starts a heading row.
Natural spaces specify each cell alignment.

<span style="color:#f44f4f;">  | cell 1.1  |  cell 1.2   |   cell 1.3 |</span>
<span style="color:#f44f4f;">  | cell 2.1  |  cell 2.2   |   cell 2.3 |</span>
<span style="color:#f44f4f;">  | cell 3.1  |  cell 3.2   |   cell 3.3 |</span>

<span style="color:#f44f4f;">|| heading 1 |  heading 2  |  heading 3 |</span>
<span style="color:#f44f4f;"> | cell 1.1  |  cell 1.2   |   cell 1.3 |</span>
<span style="color:#f44f4f;"> | cell 2.1  |  cell 2.2   |   cell 2.3 |</span>

<span style="color:#f44f4f;"> |_ heading 1 |  cell 1.1   |   cell 1.2 |</span>
<span style="color:#f44f4f;">  | heading 2 |  cell 2.1   |   cell 2.2 |</span>
<span style="color:#f44f4f;">  | heading 3 |  cell 3.1   |   cell 3.2 |</span>

<span style="color:#f44f4f;">|/ heading   |  heading 1  |  heading 2 |</span>
<span style="color:#f44f4f;"> | heading 1 |  cell 1.1   |   cell 1.2 |</span>
<span style="color:#f44f4f;"> | heading 2 |  cell 2.1   |   cell 2.2 |</span>

Without the last pipe, no border:

<span style="color:#f44f4f;">  | cell 1.1  |  cell 1.2   |   cell 1.3</span>
<span style="color:#f44f4f;">  | cell 2.1  |  cell 2.2   |   cell 2.3</span>
<span style="color:#f44f4f;">  | cell 3.1  |  cell 3.2   |   cell 3.3</span>

<span style="color:#f44f4f;">|| heading 1 |  heading 2  |  heading 3</span>
<span style="color:#f44f4f;"> | cell 1.1  |  cell 1.2   |   cell 1.3</span>
<span style="color:#f44f4f;"> | cell 2.1  |  cell 2.2   |   cell 2.3</span>

<span style="color:#f44f4f;"> |_ heading 1 |  cell 1.1   |   cell 1.2</span>
<span style="color:#f44f4f;">  | heading 2 |  cell 2.1   |   cell 2.2</span>
<span style="color:#f44f4f;">  | heading 3 |  cell 3.1   |   cell 3.2</span>

<span style="color:#f44f4f;">|/ heading   |  heading 1  |  heading 2</span>
<span style="color:#f44f4f;"> | heading 1 |  cell 1.1   |   cell 1.2</span>
<span style="color:#f44f4f;"> | heading 2 |  cell 2.1   |   cell 2.2</span>


<span style="color:#8e44ad;font-weight:bold;">= Other Title =</span>

nothing to say here...
</pre></body></html>
